﻿using System;
using System.Data;
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Xml;

namespace PickGold.Data.Linq
{
	public class MetaSource : MappingSource
	{
		public const string Provider = "Provider";
		public const string Database = "Database";
		public const string Function = "Function";
		public const string Member = "Member";
		public const string Method = "Method";
		public const string Table = "Table";
		public const string Type = "Type";
		public const string Name = "Name";
		public const string IsComposable = "IsComposable";

		private XmlNode _Config;

		public XmlNode Config
		{
			get
			{
				return this._Config;
			}
		}

		protected override MetaModel CreateModel(Type dataContextType)
		{
			return new MappingModel(this, dataContextType);
		}
	}
}
